<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="/echarts.min.js"></script>
  </head>
  <style></style>
  <body>
    <div id="mian" style="width: 1000px; height: 500px"></div>

    <script>
      var mian = echarts.init(document.querySelector("#mian"));
      var option = {
        title: {
          text: "数据可视化入门-echarts",
          subtext:'echarts数据'
        },
        tooltip: {},
        legend: {},
        xAxis: {
          data: ["全栈开发", "大数据", "人工智能", "测试"],
        },
        yAxis: {},
        series: [
          {
            name: "销量",
            type: "bar",
            data: [200, 120, 50, 10],
          },
          {
            name: "平均招生",
            type: "line",
            color: "#a3d18f",
            data: [250, 135, 80, 55],
          },
          ,
          {
            name: "就业分布",
            type: "pie",
            center: ["70%", "30%"],
            radius: "30%",
            data: [
              { value: 180, name: "杭州" },
              { value: 150, name: "郑州" },
              { value: 600, name: "苏州" },
              { value: 70, name: "南京" },
            ],
          },
        ],
      };
      mian.setOption(option);
    </script>
  </body>
</html>
